#ifndef _IPCONFIG_H_
#define _IPCONFIG_H_

typedef struct _ip {
	char ipaddr[16];
	char netmask[16];
	char gateway[16];
} IP;

/**
 * return 0 on success, -1 otherwise
 **/
int ip_config_ioctl(const IP *ip);

/**
 * return 0 on success, -1 otherwise
 **/
static int ip_get_proc(IP *ip);

/**
 * return 0 on success, -1 otherwise
 **/
int ip_get_ioctl(IP *ip);

void print_ip(void);

#endif
